const cloud = require('wx-server-sdk')
cloud.init({
  env: 'database-2p2zg',
  traceUser: true
})
const res = cloud.database().collection('school-request')

// 云函数入口函数
exports.main = async (event, context) => {
  return await res.doc(event.id).remove({ success: console.log, fail: console.error })
}